<?php
require "../util/DBUtil.php";
/**
 * 删除购物车
 */
$ID = $_GET['id']; //获取id
$sql = "delete from item where id=".$ID;    //删除语句
$db = new DBUtil();
$ret = $db->delete($sql);
if($ret){
    echo "<script>alert('删除成功');history.back();</script>";
}else{
    echo "<script>alert('删除失败');history.back();</script>";
}
